App2D(WindowSettings, RendererInfo, bool)

Constructor

Namespace: Imagini

Declared in: Imagini.App2D


Creates a new app with the specified window settings.

Syntax

public App2D(
	WindowSettings settings,
	RendererInfo driver,
	bool useSurfaceApi
)

Parameters

driver

Specifies a renderer to be used. If null, first hardware-accelerated renderer is used.

useSurfaceApi

If true, initializes Surface instead of Graphics

Remarks

If you have your own constructor, make sure to call this one because it initializes the window and the event queue.
Back to index